/*
 * Copyright (c) 2025 CAX Conversion Project
 */
package com.comac.ins.cax.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.comac.ins.common.excel.annotation.ExcelDictFormat;
import com.comac.ins.common.excel.convert.ExcelDictConvert;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
* CAX系统日志vo
*/

@Data
@ExcelIgnoreUnannotated
public class CaxSysLogVo implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /**
    * ID
    */
    @ExcelIgnore
    private Long operId;

    /**
    * 租户编号
    */
    @ExcelIgnore
    private String tenantId;

    /**
     * 模块标题
     */
    @ExcelProperty(value = "操作模块")
    private String title;

    /**
     * 业务类型（0其它 1新增 2修改 3删除）
     */
    @ExcelProperty(value = "业务类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_oper_type")
    private Integer businessType;

    /**
     * 主机地址
     */
    @ExcelProperty(value = "操作地址")
    private String operIp;

    /**
    * 状态;1：成功；2：失败
    */
    @ExcelProperty(value = "状态")
    private String operStatus = "成功";

    /**
     * 操作人员
     */
    @ExcelProperty(value = "操作人员")
    private String operName;

    /**
     * 操作时间
     */
    @ExcelProperty(value = "操作时间")
    private Date operTime;

}
